﻿using AutoMapper;
using BasicData.Application.Input.BOM;
using BasicData.Application.Input.Customer;
using BasicData.Application.Input.LineModel;
using BasicData.Application.Input.Material;
using BasicData.Application.Input.Product;
using BasicData.Application.Input.Supplier;
using BasicData.Application.Input.Workshop;
using BasicData.Application.Output;
using BasicData.Domain.Entities;
using SQLitePCL;

public class MyMapper:Profile
{
    public MyMapper()
    {
        CreateMap<WorkshopModel, WorkshopInput>().ReverseMap();
        CreateMap<WorkshopModel, WorkshopOutput>().ReverseMap();
        CreateMap<WorkshopModel, UpdateWorkshopInput>().ReverseMap();

        CreateMap<LineModel, UpdateLineInput>().ReverseMap();
        CreateMap<LineModel, LineOutput>().ReverseMap();
        CreateMap<LineModel, LineInput>().ReverseMap();

        CreateMap<MaterialModel, MaterialInput>().ReverseMap();
        CreateMap<MaterialModel, MaterialOutput>().ReverseMap();
        CreateMap<MaterialModel, UpdateMaterialInput>().ReverseMap();

        CreateMap<ProductModel, ProductInput>().ReverseMap();
        CreateMap<ProductModel, UpdateProductInput>().ReverseMap();

        CreateMap<SupplierModel, SupplierInput>().ReverseMap();
        CreateMap<SupplierModel, SupplierOutput>().ReverseMap();
        CreateMap<SupplierModel, UpdateSupplierInput>().ReverseMap();

        CreateMap<CustomerModel, CustomerInput>().ReverseMap();
        CreateMap<CustomerModel, CustomerOutPut>().ReverseMap();
        CreateMap<CustomerModel, UpdateCustomerInput>().ReverseMap();

        CreateMap<BOMModel, BomInput>().ReverseMap();
        CreateMap<BOMModel, BomOutput>().ReverseMap();
        CreateMap<BOMModel, UpdateBomInput>().ReverseMap();

        CreateMap<BomSparepart, UpdateBomSparepart>().ReverseMap();
        CreateMap<BomSparepart, BomSparepartInput>().ReverseMap();
    }
}